package com.design.strategy.demo;

import java.util.Arrays;

/**
 * Created by yijy on 2018/1/15.
 */
public class TestMain {

    public static void main(String[] args) {
        int[] arr = {5,8,9,1,4};
        Test test = new Test();
        test.sort(arr);
        System.out.println(Arrays.toString(arr));

        Cat[] cat = {new Cat("小白",10,16,1),new Cat("小灰",8,15,1),
                new Cat("小黑",12,17,1),new Cat("小黄",11,16,1)};

        ComparableCatHeight catHeight = new ComparableCatHeight();
        catHeight.compare(cat);
        for (Cat cat1 : cat){
            System.out.println(cat1.toString());
        }


    }
}
